package com.service;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.model.ReponseDto;
import com.model.SysMenu;
import com.model.SysUser;

public interface ISysUserService {

    /**
     * 登录
     * 
     * @param userName
     * @param password
     * @return
     */
    public ReponseDto<String> login(String userName, String password);

    /**
     * 获取菜单
     * 
     * @param id
     * @return
     */
    public ReponseDto<List<SysMenu>> menu(String id);

    public ReponseDto<List<SysMenu>> getMenuByRoleId(Integer roleId);
    public ReponseDto<List<SysMenu>> getMenuByRoleIdAll(Integer roleId);

    /**
     * 获取用户列表
     * 
     * @param userName
     * @param roleId
     * @return
     */
    public ReponseDto<PageInfo> list(String name, Integer roleId, String pageNo,Integer pageSize);

    /**
     * 编辑用户
     * 
     * @param sysuser
     * @param userId
     * @param userName
     * @return
     */
    public ReponseDto<String> edit(SysUser sysuser, String userId, String userName);

    /**
     * 删除用户信息
     * 
     * @param id
     * @param userId
     * @param userName
     * @return
     */
    public ReponseDto<String> delete(Integer id, String userId, String userName);
}
